﻿using System;

using SBPweb.Modules.Modularity;

namespace SBPweb.MediaCenter.Modules.Viewer.WPF.Controllers
{

    public class ViewerService : ViewerServiceBase
    {

        #region Private fields

        private ViewerMain viewControl;

        #endregion

        #region Constructor logic

        public ViewerService(IModule parentModule)
            : base(parentModule)
        {
        }

        #endregion

        #region Property accessors

        public ViewerMain ViewerViewControl
        {
            get
            {
                return viewControl;
            }
            set
            {
                viewControl = value;
                InitializeView();
            }
        }

        public new string CurrentExtensionsFilter
        {
            get
            {
                return base.CurrentExtensionsFilter;
            }
            set
            {
                base.CurrentExtensionsFilter = value;
            }
        }

        #endregion

        #region Methods

        public override void Open(Uri uri)
        {
            viewControl.Open(uri);
        }

        #region Private helper methods

        private void InitializeView()
        {
        }

        #endregion

        #endregion

    }

}